/**
 * 定义统计分析实体
 */
(function(window, angular, undefined){

	var module = angular.module('water.entity.OverAnalysis',['waterCommon']);
	
	module.service('$overAnalysisService',function($waterDataCommon){
		
		this.getY2YM2MData = function(data){
			var promise = $waterDataCommon.post("/StatisticalAnalysis/getY2YM2MData",data);
			return promise;
		}
		/**
		 * 污水厂超标率统计
		 */
		this.getOverRateForWWTP = function(data){
			var promise = $waterDataCommon.post("/OverAnalysisForWWTP/getOverRate",data);
			return promise;
		}
		/**
		 * 流域超标率统计
		 */
		this.getOverRateForZQ = function(data){
			var promise = $waterDataCommon.post("/getOverRateForZQ/getOverRate",data);
			return promise;
		}
		/**
		 * 流域超标率统计
		 */
		this.getOverRateForRiver = function(data){
			var promise = $waterDataCommon.post("/OverAnalysisForWWTP/getOverRate",data);
			return promise;
		}
		this.getOverRateForRiverForF = function(data){
			var promise = $waterDataCommon.post("/OverAnalysisForWWTP/getOverForF",data);
			return promise;
		}
		/**
		 * 获取流域数据
		 * WWTP_ID
		 * NAME
		 */
		this.getRiverList = function(data){
			var promise = $waterDataCommon.post("/OverAnalysisForWWTP/getRiverList",data);
			return promise;
		}
		/**
		 * 获取政区数据
		 * WWTP_ID
		 * NAME
		 */
		this.getAreaList = function(data){
			var promise = $waterDataCommon.post("/OverAnalysisForWWTP/getAreaList",data);
			return promise;
		}
		/**
		 * 获取检测项数据
		 * WWTP_ID
		 * NAME
		 */
		this.getPollList = function(data){
			var promise = $waterDataCommon.post("/standardAnalysis/getPollList",data);
			return promise;
		}
	});
}(window, angular));